﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Demo.Master" AutoEventWireup="true" CodeBehind="CalendarExample.aspx.cs" Inherits="WebApplication.Sample.Controls.CalendarExample" %><%@ Register Assembly="JQueryControlExtenders" Namespace="JQueryControlExtenders.CalendarExtender"
    TagPrefix="cc1" %>


<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<h1>JQuery Extender Calendar Control</h1>
    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
    <cc1:TextBoxCalendarExtender ID="TextBoxCalendarExtender1" runat="server" TargetControlID="TextBox1" />
    
    <hr />
    <h2>Show Month and year dropdowns</h2>
    <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
    <cc1:TextBoxCalendarExtender ID="TextBoxCalendarExtender2" runat="server" TargetControlID="TextBox2"
     ChangeMonth="true" ChangeYear="true" />
     
     <hr />
     <h2>In an update panel</h2>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
        <cc1:TextBoxCalendarExtender ID="TextBoxCalendarExtender3" runat="server" TargetControlID="TextBox3" />
    
        <asp:Button runat="server" Text="Refresh" onclick="Unnamed1_Click" />
        &nbsp;<asp:Label runat="server" ID="Label1"></asp:Label>
     </ContentTemplate>
    </asp:UpdatePanel>
    
</asp:Content>
